﻿using LJLib.Net.SPI.Com;
using PhoneUI.Com.Modle;
using System.Collections.Generic;

namespace PhoneUI.Com
{
    /// <summary>
    /// 获取当前用户有权限的客户区域
    /// </summary>
    public sealed class GetCusareasRequest : ILJTokenRequest<GetCusareasResponse>
    {
        public string token { get; set; }
        /// <summary>
        /// 查询条件：上级区域ID,最顶级parentid = 0
        /// </summary>
        public int parentid { get; set; }

        public string GetApiName()
        {
            return "GetCusareas";
        }
    }

    public sealed class GetCusareasResponse : LJResponse
    {
        public List<Cusarea> cusareas { get; set; }
    }
}